package com.lh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.domian.ResponseResults;
import com.lh.domian.entity.Article;


/**
 * @Author LuoHang
 * @Date 2022-08-25 21:43
 **/
public interface ArticleService extends IService<Article> {
    /**
     * 获取热文章列表
     *
     * @return ResponseResult
     */
    ResponseResults hotArticleList();

    /**
     * articleList
     * @param categoryId  categoryId
     * @param pageNum pageNum
     * @param pageSize pageSize
     * @return ResponseResults
     */
    ResponseResults articleList(Long categoryId, Integer pageNum, Integer pageSize);

    /**
     * 获取文章详情
     * @param id 文章id
     * @return 响应数据
     */
    ResponseResults getArticleDetail(Long id);

    ResponseResults updateViewCount(Long id);
}
